import request from '@/utils/request'

/**
 * @param parameter
 * @returns {*}
 */
export function login (parameter) {
  return request({
    url: '/login',
    // url: '/mock/66/login',
    method: 'post',
    data: parameter
  })
}

export function getInfo () {
  return request({
    url: '/profile/personal',
    // url: '/mock/66/profile/personal',
    method: 'get'
  })
}

export function logout () {
  return request({
    url: '/auth/logout',
    method: 'post'
  })
}
